package com.service.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bean.Ciname;
import com.bean.Filming;
import com.bean.Room;
import com.bean.SeeFilm;
import com.bean.Site;
import com.bean.Ticket;
import com.bean.Users;

public interface CinameService {
   
   //影院注册
   public Integer regCiname(Ciname ciname);
   //影院登录
   public Ciname loginCiname(@Param("manager")String manager,@Param("mPassword")String mPassword);
   //影院上传影片
   public Integer upFilm(Filming filming);
   //影院修改影片信息
   public Integer updateFilm(@Param("fid")Integer fid);
   //影院修改影院信息
   public Integer updateCiname(Ciname ciname);
   //通过CID查看本影院的影片
   public List<Filming> findFilmsByCid(@Param("cid")Integer cid);
   //通过fid和cid查找具体影片
   public Filming findFilmByFidAndCid(@Param("cid")Integer cid,@Param("fid")Integer fid);
 
   //影院信息
   public Ciname findCinameByCid(@Param("cid")Integer cid);
   public Integer addCidtoUser(Users user);
   //查看放映厅
   public List<Room> findMyRoom(@Param("cid")Integer cid);
   //添加放映厅
   public Integer addRoomByCid(Room room);
   //删除放映厅
   public Integer deleteRoomById(@Param("id")Integer id);
 //查看电影场次
   public List<SeeFilm> findMySeeTime(@Param("cid")Integer cid);
   //添加电影场次
   public Integer addSeeTimeByCid(SeeFilm seeFilm);
   //删除电影场次
   public Integer deleteSeeTimeById(@Param("id")Integer id);
   //安排电影场次
   public Integer SelectTimeAndRoom(SeeFilm seeFilm);
   //根据FID查找影片场次
   public List<SeeFilm> findFilmSeeTime(@Param("fid")Integer fid);
   //根据rid查找放映厅的座位
   public List<Site> findRoomSite(@Param("rid")Integer rid);
   //根据rid添加放映厅的座位
   public Integer addRoomSite(Site site);
   //根据Fid和today查找当天放映厅的场次
   public List<SeeFilm> findRoomByFidAndToday(@Param("cid")Integer cid,@Param("fid")Integer fid,@Param("today")String today);
   //根据ID查找影片场次
   public SeeFilm findFilmSeeTimeById(@Param("id")Integer id);
   //根据roomName查找放映厅的座位
   public List<Site> findRoomSiteByRoomName(@Param("roomName")String roomName);
   //根据roomName查找放映厅的id
   public Room findRoomIdByRoomName(@Param("rid")Integer rid);
 //上传图片
   public Integer addCinameImg(@Param("cid")Integer cid);
   //通过cname查找影院
   public Ciname findMyCiname(@Param("cname")String cname);
   //查找已出售的影票座位（通过放映厅id）
   public List<Ticket> findMyTicketSite(@Param("rid")Integer rid);
}
